﻿<%@ Page Title="" Language="C#" MasterPageFile="~/ManagerInterface.Master" AutoEventWireup="true" CodeBehind="UserManagement.aspx.cs" Inherits="spktNhom4DoAnCuoiKy.ManagerModules.UserManagement" %>
<%@ Register TagPrefix="uc" TagName="GoToPage" Src="~/GoToPage.ascx" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<link rel="stylesheet" type="text/css" href="css/UserManagement.css" />
<style type="text/css">
.remove_underline
{
    text-decoration:none;
    }
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <p class="page_header">
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <asp:Literal ID="Literal1" runat="server" Text="<%$ Resources:String,um_QuanLyNguoiDung  %>"></asp:Literal></p>
<p align="right"> <asp:Literal ID="Literal2" runat="server" Text="<%$ Resources:String,um_SoUserTrenTrang  %>"></asp:Literal>
    <asp:DropDownList ID="ddlRowPerPage" runat="server" AutoPostBack="True" 
        Height="24px" Width="88px" 
        onselectedindexchanged="ddlRowPerPage_SelectedIndexChanged">
        <asp:ListItem>5</asp:ListItem>
        <asp:ListItem>10</asp:ListItem>
        <asp:ListItem>15</asp:ListItem>
        <asp:ListItem>20</asp:ListItem> 
        <asp:ListItem>25</asp:ListItem>
    </asp:DropDownList>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
    
    
</p>
    <asp:GridView ID="gvQuanLyNguoiDung" runat="server" AllowPaging="True" 
        AllowSorting="True" AutoGenerateColumns="False" Width="1020px" 
    onrowcreated="gvQuanLyNguoiDung_RowCreated" EnableTheming="True" 
        ondatabound="gvQuanLyNguoiDung_DataBound" 
        onpageindexchanging="gvQuanLyNguoiDung_PageIndexChanging" 
        onsorting="gvQuanLyNguoiDung_Sorting1" 
        onrowcommand="gvQuanLyNguoiDung_RowCommand" Font-Size="Medium">
        <AlternatingRowStyle BackColor="#99CCFF" />
        <Columns>
            <asp:TemplateField HeaderText="<%$ Resources:String,um_STT  %>">
                <EditItemTemplate>
                    <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="STT" runat="server"></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField HeaderText="<%$ Resources:String,um_TenNguoiDung  %>" DataField="Username" 
                SortExpression="Username" />
            <asp:BoundField HeaderText="<%$ Resources:String,um_LoaiNguoiDung  %>" DataField="LoaiNguoiDung" 
                SortExpression="LoaiNguoiDung" />
            <asp:BoundField HeaderText="<%$ Resources:String,um_TinhTrang  %>" DataField="TinhTrang" 
                SortExpression="TinhTrang" />
            <asp:BoundField HeaderText="<%$ Resources:String,um_SoLanThamGia  %>" DataField="SoLanThamGia" 
                SortExpression="SoLanThamGia" >
            <ItemStyle HorizontalAlign="Center" />
            </asp:BoundField>
            <asp:BoundField DataField="SoLanThang" HeaderText="<%$ Resources:String,um_SoLanThang  %>" 
                SortExpression="SoLanThang" >
            <ItemStyle HorizontalAlign="Center" />
            </asp:BoundField>
            <asp:TemplateField HeaderText="<%$ Resources:String,um_KichHoat  %>" ShowHeader="False">
                <ItemTemplate>
                    <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="false" 
                        CommandName="EnDisableStatus" Text='<%# Eval("KichHoat") %>' CommandArgument='<%# Eval("Username") %>'>
                        </asp:LinkButton>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
        <FooterStyle BackColor="#CCCCCC" />
        <HeaderStyle BackColor="#CCCCCC" Font-Bold="True" Font-Size="Larger" CssClass="remove_underline"
            Height="40px" />
        <PagerSettings FirstPageText="Trang đầu" LastPageText="Trang cuối" 
            Mode="NumericFirstLast" />
        <PagerStyle BackColor="#CCCCCC" />
        <SortedAscendingHeaderStyle BackColor="#0066FF" />
        <SortedDescendingHeaderStyle BackColor="#FF3300" />
    </asp:GridView>
    <uc:GoToPage runat="server" OnButtonClicked="GoToPage_Clicked" ID="ControlGoToPage"   />
     </ContentTemplate>
   <Triggers>
   <asp:AsyncPostBackTrigger ControlID="ddlRowPerPage" />
   </Triggers>
    </asp:UpdatePanel>
        </asp:Content>
  
       
